import request from "../util/request.js";

//获取验证码
export const getCode=(data) => {
    return request.post('/get/code', data)
}

//发起注册请求
export const userAuthentication=(data) => {
    return request.post('/user/authentication', data)
}
//登录
export const login=(data) => {
    return request.post('/login', data)
}


//权限管理列表menu/selectlist
export const menuSelectList=() => {
    return request.get('menu/selectlist')
}
//用户信息修改
export const updateUser=(data) => {
    return request.post('/update/user',data)
}

//账号信息
export const authAdmin=(params) => {
    return request.get('/auth/admin',{params})
}

//获取权限
export const userGetMenu=(data) => {
    return request.get('/user/getmenu')
}


//权限修改
export const userSetMenu=(data) => {
    return request.post('/user/setmenu',data);
}

//菜单权限列表
export const menuList=(params) => {
    return request.get('/menu/list',{params})
}

//用户菜单权限
export const menuPermissions=(data) => {
    return request.get('/menu/permissions')
}

//获取头像
export const photoList=() => {
    return request.get('/photo/list')
}

//新增陪护师companion
export const companion=(body)=>{
    return request.post('/companion',body)
}

//查询陪护师列表companion/list
export const companionList=(params)=>{
    return request.get('/companion/list',{params})
}

//删除陪护师
export const deleteCompanion=(data)=>{
    return request.post('/delete/companion',data)
}
